package com.example.blog.data;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoPram {
    @NotNull(message = "用户名不能为空")
    @Length(min = 3,max = 20,message = "用户名长度不符合条件")
    private String userName;
    @NotNull(message = "密码不能为空")
    @Length(min = 3,max = 20,message = "密码长度不符合条件")
    private String password;
}
